<?php
include_once("../modules/checkA.php");
include_once("../../config.php");
//
//if(($_SESSION['mid']=="admin")||($_SESSION['mid']=="finance"))
//{
//$plate=select_one_line_all_items($table_Prefix."plate","mid = 'user'");
//}
//else{
$plate=select_one_line_all_items($table_Prefix."plate","mid = 'employee'");
//
//}
?>


<?
//用来判断当前系统属于什么板块
$system_part = $plate['mid'];
include_once("detail-function.php");
?>
 

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<?php include_once(ROOT_PATH_.'/controlbase/modules/head.php'); ?>
</head>

<body>

<div id="topbar"><?php include ROOT_PATH_.'/controlbase/modules/topbar.php'; ?></div>

<div id="container" class="<? echo $system_part ?>">

    <div id="maincontent">

        <div id="sidebar">
            <?php include ROOT_PATH_.'/controlbase/modules/sidebar.php'; ?>
        </div>


<div id="content" class="layui-form">
<h1> 个人中心 </h1>




<div class="detail-box user-edit-box layui-form">

<div class="detail-boxes">

    <div class="statistic-box layui-form">

        <div class="layui-tab">
            <ul class="layui-tab-title">
<!---->
<!--                <li><a href="detail-edit.php?nav-itemed=user&nid=--><?//echo $_SESSION['nid'];?><!--" >用户资料</a></li>-->
                <li class="layui-this"> 修改密码 </li>
            </ul>
<!--            <div class="layui-tab-content">-->
<!--                <div class="layui-tab-item layui-show statistic-department-info"> --><?// include 'statistic-department-info.php';?><!--  </div>-->
<!---->
<!--            </div>-->
        </div>



        <Style>
            #reset-pw-form .layui-form-label{ width: 130px;}
            #reset-pw-form .layui-input-block{margin-left:170px;}
            #reset-pw-form .function{ position: inherit; margin-left: 170px;}
        </Style>



        <form id="reset-pw-form" method="post" action="detail-edit-function.php?nav-itemed=user" enctype="multipart/form-data" class="layui-form">


            <input type="hidden" name="nid" value="<? echo $detail['nid']?>">


            <div class="layui-form-item">
                <label class="layui-form-label">登陆账号</label>
                <div class="layui-input-block">
                     <? echo $detail['mid']?>
                </div>
            </div>
            <div class="layui-form-item">
                <label class="layui-form-label">原密码</label>
                <div class="layui-input-block">
                    <input type="password" name="root_password" required  lay-verify="required" placeholder="请输入原密码" autocomplete="off" class="layui-input" value="">
                </div>
            </div>
            <div class="layui-form-item">
                <label class="layui-form-label">新密码</label>
                <div class="layui-input-block">
                    <input type="password" name="new_password" required  lay-verify="required" placeholder="请输入新密码" autocomplete="off" class="layui-input" value="">
                </div>
            </div>
            <div class="layui-form-item">
                <label class="layui-form-label">再次输入新密码</label>
                <div class="layui-input-block">
                    <input type="password" name="renew_password" required  lay-verify="required" placeholder="请再次输入新密码" autocomplete="off" class="layui-input" value="">
                </div>
            </div>


            <div class="function">
            <button  class="layui-btn" >确定</button>
            <button type="reset" class="layui-btn">重置</button>
            </div>
  </form>



</div>
</div>

<!--content端點01-->
</div>
<!--maincontent端點01-->
<br class="clearfloat"/>
</div>
<!--container端點01-->
</div>


<?php include_once('../modules/footer.php'); ?> </body>
</html>
